package com.baizhi.service;

import com.baizhi.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AdminService {
    boolean login(String userName,String password);
    //修改
    void updateAdmin(Admin admin);
    //添加
    void insertAdmin(Admin admin);
    //删除
    void deleteAdmin(Integer id);
    Admin selectByName(String  userName);

    //全查
   Map selectAllAdmin(Integer page, Integer limit);


}
